home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Super Platinum 8
/
Shareware Super Platinum 8.iso
/
mac
/
PROGTOOL
/
NETPROG.ZIP;1
/
NETPROG.TAR
/
asyncio
/
oldcat.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-12-17
|
268 b
|
21 lines
/*
* Copy standard input to standard output.
*/
#define BUFFSIZE 4096
main()
{
int n;
char buff[BUFFSIZE];
while ( (n = read(0, buff, BUFFSIZE)) > 0)
if (write(1, buff, n) != n)
err_sys("write error");
if (n < 0)
err_sys("read error");
exit(0);
}